url='https://s.weibo.com/weibo'
word='摄影'
total_page=5
excel_file=f'{word}.xlsx'
hot_excel_file=f'{word}-热门.xlsx'
cookie= ''#需要每次爬取信息时自己登录后F12打开浏览器开发者模式复制粘贴cookie的值
headers={
    'cookie':cookie,
    'referer':'https://s.weibo.com/weibo',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36'

}
